package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.boot.context.properties.bind.BindResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Api(tags = "订单退货")
@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatOrderReturnFeign {

    /**
     * 协商历史
     * @param jsonObject
     * @return
     */
    @ApiOperation("协商历史")
    @PostMapping("/wechat/member/orderreturn/getreturnmessage")
    String getReturnMessage(@RequestParam("jsonObject") JSONObject jsonObject, @RequestParam("result")BindResult result);

    /**
     * 退货详情
     * @param jsonObject
     * @return
     */
    @ApiOperation("退货详情")
    @PostMapping("/wechat/member/orderreturn/ajaxorderdetail")
    String ajaxOrderdetail(@RequestParam("jsonObject")JSONObject jsonObject);

    /**
     * 退货单列表
     * @param start
     * @param pageSize
     * @return
     */
    @ApiOperation("退货单列表")
    @PostMapping("/wechat/member/orderreturn/ajaxorderreturnlist")
    String myOrderList(@RequestParam("start")Integer start, @RequestParam("pageSize")Integer pageSize);
}
